[INFO] cloning repository https://github.com/aeolwyr/tergent
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aeolwyr/tergent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faeolwyr%2Ftergent", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faeolwyr%2Ftergent'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d4b25663d773572c0052071f54f9577741672238
[INFO] fixing aeolwyr/tergent against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faeolwyr%2Ftergent" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/aeolwyr/tergent
[INFO] finished tweaking git repo https://github.com/aeolwyr/tergent
[INFO] tweaked toml for git repo https://github.com/aeolwyr/tergent written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/aeolwyr/tergent on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/aeolwyr/tergent already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded simple_asn1 v0.4.1
[INFO] [stderr]   Downloaded num-derive v0.3.1
[INFO] [stderr]   Downloaded cc v1.0.58
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 5b1c40d12b5acf956581f6b38eb3113509630e9ca223f6b8bde32f65c2afc3db
[INFO] running `Command { std: "docker" "start" "5b1c40d12b5acf956581f6b38eb3113509630e9ca223f6b8bde32f65c2afc3db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5b1c40d12b5acf956581f6b38eb3113509630e9ca223f6b8bde32f65c2afc3db" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5b1c40d12b5acf956581f6b38eb3113509630e9ca223f6b8bde32f65c2afc3db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5b1c40d12b5acf956581f6b38eb3113509630e9ca223f6b8bde32f65c2afc3db" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.74
[INFO] [stderr]    Compiling num-traits v0.2.12
[INFO] [stderr]    Compiling num-integer v0.1.43
[INFO] [stderr]    Compiling proc-macro2 v1.0.19
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]    Compiling num-bigint v0.2.6
[INFO] [stderr]    Compiling serde v1.0.114
[INFO] [stderr]    Compiling syn v1.0.38
[INFO] [stderr]     Checking ppv-lite86 v0.2.8
[INFO] [stderr]    Compiling nix v0.18.0
[INFO] [stderr]    Compiling serde_json v1.0.57
[INFO] [stderr]     Checking itoa v0.4.6
[INFO] [stderr]     Checking base64 v0.12.3
[INFO] [stderr]     Checking once_cell v1.4.0
[INFO] [stderr]     Checking hex v0.4.2
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]     Checking getrandom v0.1.14
[INFO] [stderr]     Checking time v0.1.43
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking chrono v0.4.13
[INFO] [stderr]     Checking simple_asn1 v0.4.1
[INFO] [stderr]    Compiling num-derive v0.3.1
[INFO] [stderr]     Checking uuid v0.8.1
[INFO] [stderr]     Checking tergent v1.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `notification::Notification`
[INFO] [stdout]   --> src/pkcs11/mod.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub use notification::Notification;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `notification::Notification`
[INFO] [stdout]   --> src/pkcs11/mod.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub use notification::Notification;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `user_type::UserType`
[INFO] [stdout]   --> src/pkcs11/mod.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub use user_type::UserType;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `session_state::SessionState`
[INFO] [stdout]   --> src/pkcs11/mod.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub use session_state::SessionState;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `user_type::UserType`
[INFO] [stdout]   --> src/pkcs11/mod.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub use user_type::UserType;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `session_state::SessionState`
[INFO] [stdout]   --> src/pkcs11/mod.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub use session_state::SessionState;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hardware_feature_type::HardwareFeatureType`
[INFO] [stdout]   --> src/pkcs11/mod.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub use hardware_feature_type::HardwareFeatureType;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `certificate_category::CertificateCategory`
[INFO] [stdout]   --> src/pkcs11/mod.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub use certificate_category::CertificateCategory;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `security_domain::SecurityDomain`
[INFO] [stdout]   --> src/pkcs11/mod.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub use security_domain::SecurityDomain;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `certificate_type::CertificateType`
[INFO] [stdout]   --> src/pkcs11/mod.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub use certificate_type::CertificateType;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hardware_feature_type::HardwareFeatureType`
[INFO] [stdout]   --> src/pkcs11/mod.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub use hardware_feature_type::HardwareFeatureType;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `certificate_category::CertificateCategory`
[INFO] [stdout]   --> src/pkcs11/mod.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub use certificate_category::CertificateCategory;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `security_domain::SecurityDomain`
[INFO] [stdout]   --> src/pkcs11/mod.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub use security_domain::SecurityDomain;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `certificate_type::CertificateType`
[INFO] [stdout]   --> src/pkcs11/mod.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub use certificate_type::CertificateType;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mask_generation_function::MaskGenerationFunction`
[INFO] [stdout]   --> src/pkcs11/mod.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub use mask_generation_function::MaskGenerationFunction;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `key_derivation_function::KeyDerivationFunction`
[INFO] [stdout]   --> src/pkcs11/mod.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub use key_derivation_function::KeyDerivationFunction;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mask_generation_function::MaskGenerationFunction`
[INFO] [stdout]   --> src/pkcs11/mod.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 | pub use mask_generation_function::MaskGenerationFunction;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `pseudo_random_function::PseudoRandomFunction`
[INFO] [stdout]   --> src/pkcs11/mod.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 | pub use pseudo_random_function::PseudoRandomFunction;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `key_derivation_function::KeyDerivationFunction`
[INFO] [stdout]   --> src/pkcs11/mod.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub use key_derivation_function::KeyDerivationFunction;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `pseudo_random_function::PseudoRandomFunction`
[INFO] [stdout]   --> src/pkcs11/mod.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 | pub use pseudo_random_function::PseudoRandomFunction;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut info = unsafe { &mut *info };
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:75:9
[INFO] [stdout]    |
[INFO] [stdout] 75 |     let mut slot_info = unsafe { &mut *info };
[INFO] [stdout]    |         ----^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:101:9
[INFO] [stdout]     |
[INFO] [stdout] 101 |     let mut token_info = unsafe { &mut *info };
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut info = unsafe { &mut *info };
[INFO] [stdout]    |         ----^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:75:9
[INFO] [stdout]    |
[INFO] [stdout] 75 |     let mut slot_info = unsafe { &mut *info };
[INFO] [stdout]    |         ----^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:101:9
[INFO] [stdout]     |
[INFO] [stdout] 101 |     let mut token_info = unsafe { &mut *info };
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Date` is never constructed
[INFO] [stdout]   --> src/pkcs11/types.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub struct Date {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CInitializeArgs` is never constructed
[INFO] [stdout]   --> src/pkcs11/types.rs:87:12
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub struct CInitializeArgs {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RsaPkcsOaepParams` is never constructed
[INFO] [stdout]   --> src/pkcs11/types.rs:97:12
[INFO] [stdout]    |
[INFO] [stdout] 97 | pub struct RsaPkcsOaepParams {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RsaPkcsPssParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:106:12
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub struct RsaPkcsPssParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ecdh1DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:113:12
[INFO] [stdout]     |
[INFO] [stdout] 113 | pub struct Ecdh1DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ecdh2DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:122:12
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub struct Ecdh2DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `EcmqvDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:135:12
[INFO] [stdout]     |
[INFO] [stdout] 135 | pub struct EcmqvDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `X942Dh1DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:149:12
[INFO] [stdout]     |
[INFO] [stdout] 149 | pub struct X942Dh1DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `X942Dh2DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 | pub struct X942Dh2DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `X942MqvDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:171:12
[INFO] [stdout]     |
[INFO] [stdout] 171 | pub struct X942MqvDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `KeaDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:185:12
[INFO] [stdout]     |
[INFO] [stdout] 185 | pub struct KeaDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc2CbcParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:195:12
[INFO] [stdout]     |
[INFO] [stdout] 195 | pub struct Rc2CbcParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc2MacGeneralParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:201:12
[INFO] [stdout]     |
[INFO] [stdout] 201 | pub struct Rc2MacGeneralParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc5Params` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:207:12
[INFO] [stdout]     |
[INFO] [stdout] 207 | pub struct Rc5Params {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc5CbcParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:213:12
[INFO] [stdout]     |
[INFO] [stdout] 213 | pub struct Rc5CbcParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc5MacGeneralParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:221:12
[INFO] [stdout]     |
[INFO] [stdout] 221 | pub struct Rc5MacGeneralParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DesCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:228:12
[INFO] [stdout]     |
[INFO] [stdout] 228 | pub struct DesCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AesCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:235:12
[INFO] [stdout]     |
[INFO] [stdout] 235 | pub struct AesCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SkipjackPrivateWrapParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:242:12
[INFO] [stdout]     |
[INFO] [stdout] 242 | pub struct SkipjackPrivateWrapParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SkipjackRelayxParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:257:12
[INFO] [stdout]     |
[INFO] [stdout] 257 | pub struct SkipjackRelayxParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PbeParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:275:12
[INFO] [stdout]     |
[INFO] [stdout] 275 | pub struct PbeParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `KeyWrapSetOaepParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:285:12
[INFO] [stdout]     |
[INFO] [stdout] 285 | pub struct KeyWrapSetOaepParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ssl3RandomData` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:292:12
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub struct Ssl3RandomData {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ssl3MasterKeyDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:300:12
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub struct Ssl3MasterKeyDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ssl3KeyMatOut` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:306:12
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub struct Ssl3KeyMatOut {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ssl3KeyMatParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:316:12
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub struct Ssl3KeyMatParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TlsPrfParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:326:12
[INFO] [stdout]     |
[INFO] [stdout] 326 | pub struct TlsPrfParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsRandomData` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:336:12
[INFO] [stdout]     |
[INFO] [stdout] 336 | pub struct WtlsRandomData {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsMasterKeyDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:344:12
[INFO] [stdout]     |
[INFO] [stdout] 344 | pub struct WtlsMasterKeyDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsPrfParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:351:12
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub struct WtlsPrfParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsKeyMatOut` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:362:12
[INFO] [stdout]     |
[INFO] [stdout] 362 | pub struct WtlsKeyMatOut {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsKeyMatParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:369:12
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub struct WtlsKeyMatParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CmsSigParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:381:12
[INFO] [stdout]     |
[INFO] [stdout] 381 | pub struct CmsSigParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `KeyDerivationStringData` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:393:12
[INFO] [stdout]     |
[INFO] [stdout] 393 | pub struct KeyDerivationStringData {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pkcs5Pbkd2Params` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:399:12
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub struct Pkcs5Pbkd2Params {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pkcs5Pbkd2Params2` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:412:12
[INFO] [stdout]     |
[INFO] [stdout] 412 | pub struct Pkcs5Pbkd2Params2 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OtpParam` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:425:12
[INFO] [stdout]     |
[INFO] [stdout] 425 | pub struct OtpParam {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OtpParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:432:12
[INFO] [stdout]     |
[INFO] [stdout] 432 | pub struct OtpParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OtpSignatureInfo` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:438:12
[INFO] [stdout]     |
[INFO] [stdout] 438 | pub struct OtpSignatureInfo {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `KipParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:444:12
[INFO] [stdout]     |
[INFO] [stdout] 444 | pub struct KipParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AesCtrParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:452:12
[INFO] [stdout]     |
[INFO] [stdout] 452 | pub struct AesCtrParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GcmParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:458:12
[INFO] [stdout]     |
[INFO] [stdout] 458 | pub struct GcmParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CcmParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:468:12
[INFO] [stdout]     |
[INFO] [stdout] 468 | pub struct CcmParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AesGcmParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:478:12
[INFO] [stdout]     |
[INFO] [stdout] 478 | pub struct AesGcmParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AesCcmParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:488:12
[INFO] [stdout]     |
[INFO] [stdout] 488 | pub struct AesCcmParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CamelliaCtrParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:498:12
[INFO] [stdout]     |
[INFO] [stdout] 498 | pub struct CamelliaCtrParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CamelliaCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:504:12
[INFO] [stdout]     |
[INFO] [stdout] 504 | pub struct CamelliaCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AriaCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:511:12
[INFO] [stdout]     |
[INFO] [stdout] 511 | pub struct AriaCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DsaParameterGenParam` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:518:12
[INFO] [stdout]     |
[INFO] [stdout] 518 | pub struct DsaParameterGenParam {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `EcdhAesKeyWrapParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:526:12
[INFO] [stdout]     |
[INFO] [stdout] 526 | pub struct EcdhAesKeyWrapParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RsaAesKeyWrapParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:534:12
[INFO] [stdout]     |
[INFO] [stdout] 534 | pub struct RsaAesKeyWrapParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tls12MasterKeyDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:540:12
[INFO] [stdout]     |
[INFO] [stdout] 540 | pub struct Tls12MasterKeyDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tls12KeyMatParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:547:12
[INFO] [stdout]     |
[INFO] [stdout] 547 | pub struct Tls12KeyMatParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TlsKdfParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:558:12
[INFO] [stdout]     |
[INFO] [stdout] 558 | pub struct TlsKdfParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TlsMacParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:568:12
[INFO] [stdout]     |
[INFO] [stdout] 568 | pub struct TlsMacParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Gostr3410DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:575:12
[INFO] [stdout]     |
[INFO] [stdout] 575 | pub struct Gostr3410DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Gostr3410KeyWrapParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:584:12
[INFO] [stdout]     |
[INFO] [stdout] 584 | pub struct Gostr3410KeyWrapParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SeedCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:593:12
[INFO] [stdout]     |
[INFO] [stdout] 593 | pub struct SeedCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/lib.rs:45:26
[INFO] [stdout]    |
[INFO] [stdout] 45 |         *function_list = &mut FUNCTION_LIST as *mut FunctionList;
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 45 |         *function_list = &raw mut FUNCTION_LIST as *mut FunctionList;
[INFO] [stdout]    |                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Date` is never constructed
[INFO] [stdout]   --> src/pkcs11/types.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub struct Date {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CInitializeArgs` is never constructed
[INFO] [stdout]   --> src/pkcs11/types.rs:87:12
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub struct CInitializeArgs {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RsaPkcsOaepParams` is never constructed
[INFO] [stdout]   --> src/pkcs11/types.rs:97:12
[INFO] [stdout]    |
[INFO] [stdout] 97 | pub struct RsaPkcsOaepParams {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RsaPkcsPssParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:106:12
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub struct RsaPkcsPssParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ecdh1DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:113:12
[INFO] [stdout]     |
[INFO] [stdout] 113 | pub struct Ecdh1DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ecdh2DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:122:12
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub struct Ecdh2DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `EcmqvDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:135:12
[INFO] [stdout]     |
[INFO] [stdout] 135 | pub struct EcmqvDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `X942Dh1DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:149:12
[INFO] [stdout]     |
[INFO] [stdout] 149 | pub struct X942Dh1DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `X942Dh2DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 | pub struct X942Dh2DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `X942MqvDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:171:12
[INFO] [stdout]     |
[INFO] [stdout] 171 | pub struct X942MqvDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `KeaDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:185:12
[INFO] [stdout]     |
[INFO] [stdout] 185 | pub struct KeaDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/notification.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Notification`
[INFO] [stdout] 8 | pub enum Notification {
[INFO] [stdout]   |          ------------ `Notification` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc2CbcParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:195:12
[INFO] [stdout]     |
[INFO] [stdout] 195 | pub struct Rc2CbcParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc2MacGeneralParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:201:12
[INFO] [stdout]     |
[INFO] [stdout] 201 | pub struct Rc2MacGeneralParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc5Params` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:207:12
[INFO] [stdout]     |
[INFO] [stdout] 207 | pub struct Rc5Params {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc5CbcParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:213:12
[INFO] [stdout]     |
[INFO] [stdout] 213 | pub struct Rc5CbcParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rc5MacGeneralParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:221:12
[INFO] [stdout]     |
[INFO] [stdout] 221 | pub struct Rc5MacGeneralParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DesCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:228:12
[INFO] [stdout]     |
[INFO] [stdout] 228 | pub struct DesCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AesCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:235:12
[INFO] [stdout]     |
[INFO] [stdout] 235 | pub struct AesCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SkipjackPrivateWrapParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:242:12
[INFO] [stdout]     |
[INFO] [stdout] 242 | pub struct SkipjackPrivateWrapParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SkipjackRelayxParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:257:12
[INFO] [stdout]     |
[INFO] [stdout] 257 | pub struct SkipjackRelayxParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PbeParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:275:12
[INFO] [stdout]     |
[INFO] [stdout] 275 | pub struct PbeParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `KeyWrapSetOaepParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:285:12
[INFO] [stdout]     |
[INFO] [stdout] 285 | pub struct KeyWrapSetOaepParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/notification.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Notification`
[INFO] [stdout] 8 | pub enum Notification {
[INFO] [stdout]   |          ------------ `Notification` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ssl3RandomData` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:292:12
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub struct Ssl3RandomData {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ssl3MasterKeyDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:300:12
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub struct Ssl3MasterKeyDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/user_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_UserType`
[INFO] [stdout] 8 | pub enum UserType {
[INFO] [stdout]   |          -------- `UserType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ssl3KeyMatOut` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:306:12
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub struct Ssl3KeyMatOut {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ssl3KeyMatParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:316:12
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub struct Ssl3KeyMatParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/user_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_UserType`
[INFO] [stdout] 8 | pub enum UserType {
[INFO] [stdout]   |          -------- `UserType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TlsPrfParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:326:12
[INFO] [stdout]     |
[INFO] [stdout] 326 | pub struct TlsPrfParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsRandomData` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:336:12
[INFO] [stdout]     |
[INFO] [stdout] 336 | pub struct WtlsRandomData {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/session_state.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SessionState`
[INFO] [stdout] 8 | pub enum SessionState {
[INFO] [stdout]   |          ------------ `SessionState` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsMasterKeyDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:344:12
[INFO] [stdout]     |
[INFO] [stdout] 344 | pub struct WtlsMasterKeyDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsPrfParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:351:12
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub struct WtlsPrfParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsKeyMatOut` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:362:12
[INFO] [stdout]     |
[INFO] [stdout] 362 | pub struct WtlsKeyMatOut {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/session_state.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_SessionState`
[INFO] [stdout] 8 | pub enum SessionState {
[INFO] [stdout]   |          ------------ `SessionState` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WtlsKeyMatParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:369:12
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub struct WtlsKeyMatParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CmsSigParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:381:12
[INFO] [stdout]     |
[INFO] [stdout] 381 | pub struct CmsSigParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `KeyDerivationStringData` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:393:12
[INFO] [stdout]     |
[INFO] [stdout] 393 | pub struct KeyDerivationStringData {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pkcs5Pbkd2Params` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:399:12
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub struct Pkcs5Pbkd2Params {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Pkcs5Pbkd2Params2` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:412:12
[INFO] [stdout]     |
[INFO] [stdout] 412 | pub struct Pkcs5Pbkd2Params2 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OtpParam` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:425:12
[INFO] [stdout]     |
[INFO] [stdout] 425 | pub struct OtpParam {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OtpParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:432:12
[INFO] [stdout]     |
[INFO] [stdout] 432 | pub struct OtpParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OtpSignatureInfo` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:438:12
[INFO] [stdout]     |
[INFO] [stdout] 438 | pub struct OtpSignatureInfo {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `KipParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:444:12
[INFO] [stdout]     |
[INFO] [stdout] 444 | pub struct KipParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AesCtrParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:452:12
[INFO] [stdout]     |
[INFO] [stdout] 452 | pub struct AesCtrParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GcmParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:458:12
[INFO] [stdout]     |
[INFO] [stdout] 458 | pub struct GcmParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CcmParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:468:12
[INFO] [stdout]     |
[INFO] [stdout] 468 | pub struct CcmParams {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AesGcmParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:478:12
[INFO] [stdout]     |
[INFO] [stdout] 478 | pub struct AesGcmParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AesCcmParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:488:12
[INFO] [stdout]     |
[INFO] [stdout] 488 | pub struct AesCcmParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CamelliaCtrParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:498:12
[INFO] [stdout]     |
[INFO] [stdout] 498 | pub struct CamelliaCtrParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CamelliaCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:504:12
[INFO] [stdout]     |
[INFO] [stdout] 504 | pub struct CamelliaCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AriaCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:511:12
[INFO] [stdout]     |
[INFO] [stdout] 511 | pub struct AriaCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DsaParameterGenParam` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:518:12
[INFO] [stdout]     |
[INFO] [stdout] 518 | pub struct DsaParameterGenParam {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `EcdhAesKeyWrapParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:526:12
[INFO] [stdout]     |
[INFO] [stdout] 526 | pub struct EcdhAesKeyWrapParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RsaAesKeyWrapParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:534:12
[INFO] [stdout]     |
[INFO] [stdout] 534 | pub struct RsaAesKeyWrapParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tls12MasterKeyDeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:540:12
[INFO] [stdout]     |
[INFO] [stdout] 540 | pub struct Tls12MasterKeyDeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tls12KeyMatParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:547:12
[INFO] [stdout]     |
[INFO] [stdout] 547 | pub struct Tls12KeyMatParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TlsKdfParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:558:12
[INFO] [stdout]     |
[INFO] [stdout] 558 | pub struct TlsKdfParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/object_class.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ObjectClass`
[INFO] [stdout] 8 | pub enum ObjectClass {
[INFO] [stdout]   |          ----------- `ObjectClass` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TlsMacParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:568:12
[INFO] [stdout]     |
[INFO] [stdout] 568 | pub struct TlsMacParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Gostr3410DeriveParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:575:12
[INFO] [stdout]     |
[INFO] [stdout] 575 | pub struct Gostr3410DeriveParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Gostr3410KeyWrapParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:584:12
[INFO] [stdout]     |
[INFO] [stdout] 584 | pub struct Gostr3410KeyWrapParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/object_class.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ObjectClass`
[INFO] [stdout] 8 | pub enum ObjectClass {
[INFO] [stdout]   |          ----------- `ObjectClass` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SeedCbcEncryptDataParams` is never constructed
[INFO] [stdout]    --> src/pkcs11/types.rs:593:12
[INFO] [stdout]     |
[INFO] [stdout] 593 | pub struct SeedCbcEncryptDataParams {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/lib.rs:45:26
[INFO] [stdout]    |
[INFO] [stdout] 45 |         *function_list = &mut FUNCTION_LIST as *mut FunctionList;
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 45 |         *function_list = &raw mut FUNCTION_LIST as *mut FunctionList;
[INFO] [stdout]    |                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/hardware_feature_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HardwareFeatureType`
[INFO] [stdout] 8 | pub enum HardwareFeatureType {
[INFO] [stdout]   |          ------------------- `HardwareFeatureType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/hardware_feature_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_HardwareFeatureType`
[INFO] [stdout] 8 | pub enum HardwareFeatureType {
[INFO] [stdout]   |          ------------------- `HardwareFeatureType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/key_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KeyType`
[INFO] [stdout] 8 | pub enum KeyType {
[INFO] [stdout]   |          ------- `KeyType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/key_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_KeyType`
[INFO] [stdout] 8 | pub enum KeyType {
[INFO] [stdout]   |          ------- `KeyType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/certificate_category.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CertificateCategory`
[INFO] [stdout] 8 | pub enum CertificateCategory {
[INFO] [stdout]   |          ------------------- `CertificateCategory` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/certificate_category.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CertificateCategory`
[INFO] [stdout] 8 | pub enum CertificateCategory {
[INFO] [stdout]   |          ------------------- `CertificateCategory` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/notification.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Notification`
[INFO] [stdout] 8 | pub enum Notification {
[INFO] [stdout]   |          ------------ `Notification` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/notification.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Notification`
[INFO] [stdout] 8 | pub enum Notification {
[INFO] [stdout]   |          ------------ `Notification` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/security_domain.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SecurityDomain`
[INFO] [stdout] 8 | pub enum SecurityDomain {
[INFO] [stdout]   |          -------------- `SecurityDomain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/security_domain.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_SecurityDomain`
[INFO] [stdout] 8 | pub enum SecurityDomain {
[INFO] [stdout]   |          -------------- `SecurityDomain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/certificate_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CertificateType`
[INFO] [stdout] 8 | pub enum CertificateType {
[INFO] [stdout]   |          --------------- `CertificateType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/certificate_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CertificateType`
[INFO] [stdout] 8 | pub enum CertificateType {
[INFO] [stdout]   |          --------------- `CertificateType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/attribute_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_AttributeType`
[INFO] [stdout] 8 | pub enum AttributeType {
[INFO] [stdout]   |          ------------- `AttributeType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/user_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_UserType`
[INFO] [stdout] 8 | pub enum UserType {
[INFO] [stdout]   |          -------- `UserType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/attribute_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_AttributeType`
[INFO] [stdout] 8 | pub enum AttributeType {
[INFO] [stdout]   |          ------------- `AttributeType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/user_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_UserType`
[INFO] [stdout] 8 | pub enum UserType {
[INFO] [stdout]   |          -------- `UserType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/session_state.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SessionState`
[INFO] [stdout] 8 | pub enum SessionState {
[INFO] [stdout]   |          ------------ `SessionState` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pkcs11/otp.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout] 16 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                 ^------------
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `FromPrimitive` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Format`
[INFO] [stdout] 17 | pub enum Format {
[INFO] [stdout]    |          ------ `Format` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/session_state.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_SessionState`
[INFO] [stdout] 8 | pub enum SessionState {
[INFO] [stdout]   |          ------------ `SessionState` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/object_class.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ObjectClass`
[INFO] [stdout] 8 | pub enum ObjectClass {
[INFO] [stdout]   |          ----------- `ObjectClass` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pkcs11/otp.rs:16:32
[INFO] [stdout]    |
[INFO] [stdout] 16 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                ^----------
[INFO] [stdout]    |                                |
[INFO] [stdout]    |                                `ToPrimitive` is not local
[INFO] [stdout]    |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Format`
[INFO] [stdout] 17 | pub enum Format {
[INFO] [stdout]    |          ------ `Format` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pkcs11/otp.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                 ^------------
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `FromPrimitive` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Param`
[INFO] [stdout] 25 | pub enum Param {
[INFO] [stdout]    |          ----- `Param` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/object_class.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ObjectClass`
[INFO] [stdout] 8 | pub enum ObjectClass {
[INFO] [stdout]   |          ----------- `ObjectClass` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pkcs11/otp.rs:24:32
[INFO] [stdout]    |
[INFO] [stdout] 24 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                ^----------
[INFO] [stdout]    |                                |
[INFO] [stdout]    |                                `ToPrimitive` is not local
[INFO] [stdout]    |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Param`
[INFO] [stdout] 25 | pub enum Param {
[INFO] [stdout]    |          ----- `Param` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/hardware_feature_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HardwareFeatureType`
[INFO] [stdout] 8 | pub enum HardwareFeatureType {
[INFO] [stdout]   |          ------------------- `HardwareFeatureType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/mechanism_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MechanismType`
[INFO] [stdout] 8 | pub enum MechanismType {
[INFO] [stdout]   |          ------------- `MechanismType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/hardware_feature_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_HardwareFeatureType`
[INFO] [stdout] 8 | pub enum HardwareFeatureType {
[INFO] [stdout]   |          ------------------- `HardwareFeatureType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/key_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KeyType`
[INFO] [stdout] 8 | pub enum KeyType {
[INFO] [stdout]   |          ------- `KeyType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/key_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_KeyType`
[INFO] [stdout] 8 | pub enum KeyType {
[INFO] [stdout]   |          ------- `KeyType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/certificate_category.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CertificateCategory`
[INFO] [stdout] 8 | pub enum CertificateCategory {
[INFO] [stdout]   |          ------------------- `CertificateCategory` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/mechanism_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MechanismType`
[INFO] [stdout] 8 | pub enum MechanismType {
[INFO] [stdout]   |          ------------- `MechanismType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/return_value.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ReturnValue`
[INFO] [stdout] 8 | pub enum ReturnValue {
[INFO] [stdout]   |          ----------- `ReturnValue` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/return_value.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ReturnValue`
[INFO] [stdout] 8 | pub enum ReturnValue {
[INFO] [stdout]   |          ----------- `ReturnValue` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/mask_generation_function.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MaskGenerationFunction`
[INFO] [stdout] 8 | pub enum MaskGenerationFunction {
[INFO] [stdout]   |          ---------------------- `MaskGenerationFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/certificate_category.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CertificateCategory`
[INFO] [stdout] 8 | pub enum CertificateCategory {
[INFO] [stdout]   |          ------------------- `CertificateCategory` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/security_domain.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SecurityDomain`
[INFO] [stdout] 8 | pub enum SecurityDomain {
[INFO] [stdout]   |          -------------- `SecurityDomain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/security_domain.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_SecurityDomain`
[INFO] [stdout] 8 | pub enum SecurityDomain {
[INFO] [stdout]   |          -------------- `SecurityDomain` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/mask_generation_function.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MaskGenerationFunction`
[INFO] [stdout] 8 | pub enum MaskGenerationFunction {
[INFO] [stdout]   |          ---------------------- `MaskGenerationFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/certificate_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_CertificateType`
[INFO] [stdout] 8 | pub enum CertificateType {
[INFO] [stdout]   |          --------------- `CertificateType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/certificate_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_CertificateType`
[INFO] [stdout] 8 | pub enum CertificateType {
[INFO] [stdout]   |          --------------- `CertificateType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/key_derivation_function.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KeyDerivationFunction`
[INFO] [stdout] 8 | pub enum KeyDerivationFunction {
[INFO] [stdout]   |          --------------------- `KeyDerivationFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/attribute_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_AttributeType`
[INFO] [stdout] 8 | pub enum AttributeType {
[INFO] [stdout]   |          ------------- `AttributeType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/key_derivation_function.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_KeyDerivationFunction`
[INFO] [stdout] 8 | pub enum KeyDerivationFunction {
[INFO] [stdout]   |          --------------------- `KeyDerivationFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/pseudo_random_function.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PseudoRandomFunction`
[INFO] [stdout] 8 | pub enum PseudoRandomFunction {
[INFO] [stdout]   |          -------------------- `PseudoRandomFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/pseudo_random_function.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PseudoRandomFunction`
[INFO] [stdout] 8 | pub enum PseudoRandomFunction {
[INFO] [stdout]   |          -------------------- `PseudoRandomFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/attribute_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_AttributeType`
[INFO] [stdout] 8 | pub enum AttributeType {
[INFO] [stdout]   |          ------------- `AttributeType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pkcs11/otp.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout] 16 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                 ^------------
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `FromPrimitive` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Format`
[INFO] [stdout] 17 | pub enum Format {
[INFO] [stdout]    |          ------ `Format` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pkcs11/otp.rs:16:32
[INFO] [stdout]    |
[INFO] [stdout] 16 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                ^----------
[INFO] [stdout]    |                                |
[INFO] [stdout]    |                                `ToPrimitive` is not local
[INFO] [stdout]    |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Format`
[INFO] [stdout] 17 | pub enum Format {
[INFO] [stdout]    |          ------ `Format` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pkcs11/otp.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                 ^------------
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 `FromPrimitive` is not local
[INFO] [stdout]    |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Param`
[INFO] [stdout] 25 | pub enum Param {
[INFO] [stdout]    |          ----- `Param` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/pkcs11/otp.rs:24:32
[INFO] [stdout]    |
[INFO] [stdout] 24 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]    |                                ^----------
[INFO] [stdout]    |                                |
[INFO] [stdout]    |                                `ToPrimitive` is not local
[INFO] [stdout]    |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Param`
[INFO] [stdout] 25 | pub enum Param {
[INFO] [stdout]    |          ----- `Param` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/mechanism_type.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MechanismType`
[INFO] [stdout] 8 | pub enum MechanismType {
[INFO] [stdout]   |          ------------- `MechanismType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/mechanism_type.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MechanismType`
[INFO] [stdout] 8 | pub enum MechanismType {
[INFO] [stdout]   |          ------------- `MechanismType` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/return_value.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ReturnValue`
[INFO] [stdout] 8 | pub enum ReturnValue {
[INFO] [stdout]   |          ----------- `ReturnValue` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/return_value.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_ReturnValue`
[INFO] [stdout] 8 | pub enum ReturnValue {
[INFO] [stdout]   |          ----------- `ReturnValue` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/mask_generation_function.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MaskGenerationFunction`
[INFO] [stdout] 8 | pub enum MaskGenerationFunction {
[INFO] [stdout]   |          ---------------------- `MaskGenerationFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/mask_generation_function.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_MaskGenerationFunction`
[INFO] [stdout] 8 | pub enum MaskGenerationFunction {
[INFO] [stdout]   |          ---------------------- `MaskGenerationFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/key_derivation_function.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_KeyDerivationFunction`
[INFO] [stdout] 8 | pub enum KeyDerivationFunction {
[INFO] [stdout]   |          --------------------- `KeyDerivationFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/key_derivation_function.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_KeyDerivationFunction`
[INFO] [stdout] 8 | pub enum KeyDerivationFunction {
[INFO] [stdout]   |          --------------------- `KeyDerivationFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/pseudo_random_function.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                 ^------------
[INFO] [stdout]   |                 |
[INFO] [stdout]   |                 `FromPrimitive` is not local
[INFO] [stdout]   |                 move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_PseudoRandomFunction`
[INFO] [stdout] 8 | pub enum PseudoRandomFunction {
[INFO] [stdout]   |          -------------------- `PseudoRandomFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]  --> src/pkcs11/pseudo_random_function.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[derive(Debug, FromPrimitive, ToPrimitive)]
[INFO] [stdout]   |                                ^----------
[INFO] [stdout]   |                                |
[INFO] [stdout]   |                                `ToPrimitive` is not local
[INFO] [stdout]   |                                move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_PseudoRandomFunction`
[INFO] [stdout] 8 | pub enum PseudoRandomFunction {
[INFO] [stdout]   |          -------------------- `PseudoRandomFunction` is not local
[INFO] [stdout]   |
[INFO] [stdout]   = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]   = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive`
[INFO] [stdout]   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]   = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.91s
[INFO] [stderr] crater-edition-check: all finished
[INFO] running `Command { std: "docker" "inspect" "5b1c40d12b5acf956581f6b38eb3113509630e9ca223f6b8bde32f65c2afc3db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5b1c40d12b5acf956581f6b38eb3113509630e9ca223f6b8bde32f65c2afc3db", kill_on_drop: false }`
[INFO] [stdout] 5b1c40d12b5acf956581f6b38eb3113509630e9ca223f6b8bde32f65c2afc3db
